import 'package:json_annotation/json_annotation.dart';

part 'chat_user.g.dart';


@JsonSerializable()
class ChatUser extends Object {

  @JsonKey(name: 'id')
  String id;

  @JsonKey(name: 'user_id')
  String userId;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'gender')
  String gender;

  @JsonKey(name: 'summary')
  String summary;

  @JsonKey(name: 'avatar')
  String avatar;

  @JsonKey(name: 'nickname')
  String nickname;

  ChatUser(this.id,this.userId,this.name,this.gender,this.summary,this.avatar,this.nickname,);

  factory ChatUser.fromJson(Map<String, dynamic> srcJson) => _$ChatUserFromJson(srcJson);

  Map<String, dynamic> toJson() => _$ChatUserToJson(this);

}